home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.08 Aug 91 / Dots Source / cScorePane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-02  |  803 b   |  30 lines  |  [TEXT/KAHL]

  1. /**************************************
  2.     cScorePane.h
  3. ****************************************/
  4.  
  5. #define _H_cScorePane
  6. #include <CPane.h>
  7.  
  8. /*** Class Types ***/
  9. typedef int            tScores[2];
  10.  
  11. struct cScorePane : CPane {
  12.         /* Instance variables */
  13.     Boolean    fPlayerHilite;    /* Player currently highlighted,
  14.                                 not necessaryily whose turn it is */
  15.                                 
  16.         /* Initialization */
  17.     void    IScorePane(CView *anEnclosure, CBureaucrat *aSupervisor,
  18.                             short aWidth, short aHeight,
  19.                             short aHEncl, short aVEncl,
  20.                             SizingOption aHSizing, SizingOption aVSizing);
  21.  
  22.         /* Override Methods */
  23.     void    Draw(Rect *area);
  24.  
  25.         /* Additional Methods */
  26.     void    calculateScore(tScores score);
  27.     void     getPlayerRect(Boolean thePlayer, Rect *r);
  28.     void    invalScore(Boolean thePlayer);
  29.     void    setTurn(Boolean thePlayer);
  30. };